<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title><?php echo $title;?></title>

<link href="<?php echo base_url();?>css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo base_url();?>js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>js/script.js"></script>
<script type="text/javascript"> 
   
</script>  
</head>
<body>
   <div id="wrapper">
    <div id="admin-top">
    	<?php echo "<h1>Site Administration</h1>";?>
    	<div class="account" style="margin-top:-30px;">
    		<?php 
    		if (isset($_SESSION['admin_role_id']) && $_SESSION['admin_role_id'] ==1) {
				echo '<img title="setting" class="setting" src="'.base_url().'css/images/setting.png" />';
    			echo "Welcome, ".$_SESSION['admin_username'];
    			$this->load->view('admin/setting');
    		} else {?>
    			<?php //redirect("administration","refresh");?>
    		<?php } ?>
    	</div>
    </div>
	<div id="content-container">
			<?php 
				$margin_left = "";
				if (isset($left)) {
					echo '<div id="content-left">';
					$margin_left = "content-margin-left";
					$this->load->view($left);	
					echo '</div>'; 
				}
			?>
        	<?php 
        		$margin_right = "";
				if (isset($right)) {
					echo '<div id="content-right">';
					$margin_right = "content-margin-right";
					$this->load->view($right);
					echo '</div>';	
				}
			?>
		<div id="content-main" class="<?php echo $margin_left.'  '.$margin_right;?>">
            <?php $this->load->view($main);?>
        </div>
		<div style="clear:both;"></div>
	</div>
	<div id="footer">
		 <p>
		 	NORTON UNIVERSITY<BR/>
		 	College of Science, Department of Computer Studies.
		 </p>
	</div>
</div>
</body>
</html>
